package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.CompanyEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 业务实体类 - 公告通知查看表
 * ============================================================================
 * 版权所有 2016 。
 *
 * @author XuHeng
 * @version 1.0 2017-01-03 。
 * ============================================================================
 */
@Entity
@Table(name="ec_noticeread")
public class NoticeRead extends CompanyEntity {

    private static final long serialVersionUID = 136843300940745738L;

    /**
     * 公告通知
     */
    private Notice notice;

    /**
     * 查看人 == 新建人
     * name == 新建人姓名
     */

    /**
     * 查看时间 == 创建时间
     */

    @ManyToOne(fetch = FetchType.LAZY)
    public Notice getNotice() {
        return notice;
    }

    public void setNotice(Notice notice) {
        this.notice = notice;
    }

}
